from django.urls import re_path

from ranks import views

urlpatterns = [
    # 更新分数
    re_path(r'^up/(?P<name>(?!_)(?!.*?_$)[a-zA-Z0-9_\u4e00-\u9fa5]+)/(?P<score>\d{1,8})$',
            views.RankView.as_view()),
    re_path(r'^rank/(?P<name>(?!_)(?!.*?_$)[a-zA-Z0-9_\u4e00-\u9fa5]+)/$',
            views.GEtRankView.as_view()),
]
